import 'package:ladder_cash/generated/json/base/json_field.dart';
import 'package:ladder_cash/generated/json/login_user_info_model.g.dart';
import 'dart:convert';

@JsonSerializable()
class LoginUserInfoModel {
  String username = "";
  String sessionId = "";

  LoginUserInfoModel();

  factory LoginUserInfoModel.fromJson(Map<String, dynamic> json) =>
      $LoginUserInfoModelFromJson(json);

  Map<String, dynamic> toJson() => $LoginUserInfoModelToJson(this);

  LoginUserInfoModel copyWith(
      {String? qLaT,
      String? hHNPF,
      dynamic gnsg,
      String? lHeKAyf1vZ9X,
      dynamic i1t5h8aMPe,
      String? i2sfPHBk9eBP,
      String? cNF3qgv,
      String? sLiYUB8kojV,
      int? tBGzx,
      int? sky,
      int? uid,
      String? steps,
      String? hurrying,
      String? free}) {
    return LoginUserInfoModel()
      ..username = qLaT ?? this.username
      ..sessionId = free ?? this.sessionId;
  }

  @override
  String toString() {
    return jsonEncode(this);
  }
}
